package main;

import controller.LoginCtrl;
import view.AdminWnd;
import view.LoginDlg;
import view.TeacherWnd;

/**
 *
 * @author cska
 */
public class Main {

    public static void main(String[] args) {
        LoginDlg ld = new LoginDlg(null, true);
        LoginCtrl lc = new LoginCtrl(ld.getLogin(), ld.getPass());
        ld.dispose();
        if (lc.isAdmin()) {
            AdminWnd aw = new AdminWnd(lc.getLogin());
        } else if (lc.isTeacher()) {
            TeacherWnd tw = new TeacherWnd(lc.getLogin());
        }
    }
}
